# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=bitrot
pkgver=0_git20210222
_commit=70534bce27dbbe4bb3d526877eca56f81538c827
_dpf=74aec5b6a2350805edd6ad7344a79966eb467fa9
pkgrel=0
pkgdesc="Audio effect plugins for glitch effects"
options="!check" # no tests
url="https://github.com/grejppi/bitrot"
arch="all"
license="Apache-2.0"
makedepends="waf"
source="$pkgname-$_commit.tar.gz::https://github.com/grejppi/bitrot/archive/$_commit.tar.gz
	DPF-$_dpf.tar.gz::https://github.com/grejppi/DPF/archive/$_dpf.tar.gz
	"
builddir="$srcdir/bitrot-$_commit"

prepare() {
	default_prepare
	mv "$srcdir"/DPF-$_dpf/* "$builddir"/DPF
}

build() {
	python3 waf configure --prefix=/usr
	python3 waf build
}

package() {
	python3 waf install --destdir="$pkgdir"
}

sha512sums="
27af37ec397c92a9f095ba20ec8cb4b7d140e27a646c4209063f195d33a36694fc2cee8b87a6cad1940d1c247207e25edc3d9001bb003edb09ed834d348c5a81  bitrot-70534bce27dbbe4bb3d526877eca56f81538c827.tar.gz
42f7b168e7d54e6683c7d55b9749102eca14a79c3256b8f12f00b2977d9c8dc000cd0ab07a47dc9ebe2518d54d3c2bb63e7f50107a65f11636e707883bc15a83  DPF-74aec5b6a2350805edd6ad7344a79966eb467fa9.tar.gz
"
